/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package common;
import paintables.DrawnFace;
import paintables.ImageFace;

/**
 *
 * @author elearning03
 */
// Factory

public class PaintableFactory
{
    private boolean useImage = true;

  public Paintable create(int x1, int y1, int x2, int y2, int state) {
    if (useImage) {
      return new ImageFace(x1, y1, x2, y2, state);
    } else {
      return new DrawnFace(x1, y1, x2, y2, state);
    }
  }

}
